	<div class="actions">
		<ul>
			<li><?php echo $html->link('Tạo tài khoản mới', array('action' => 'add')); ?></li>
		</ul>
	</div>
<div class="view">
	<h2><?php echo 'Quản lý người dùng';?></h2>
	<p>
	<?php
		$this->pageTitle = 'Quan ly nguoi dung';
		$paginator->options(array('url'=>$this->passedArgs));
		echo $paginator->counter(array('format' => 'Hiện có %count% mẫu tin - Trang %page%/%pages%'));
	?>
	</p>
	<table cellpadding="0" cellspacing="0">
	<tr>
		<!--th><?php echo $paginator->sort('id');?></th-->
		<th><?php echo $paginator->sort('Tài khoản','USERNAME');?></th>
		<!--th><?php echo $paginator->sort('PASSWORD');?></th-->
		<th><?php echo $paginator->sort('Họ tên cán bộ','Hoten');?></th>
		<th><?php echo $paginator->sort('Quyền','ROLE');?></th>
		<th class="actions"><?php echo 'Hành động';?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($users as $user):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
		<tr<?php echo $class;?>>
			<!--td>
				<?php echo $user['User']['id']; ?>
			</td-->
			<td>
				<?php echo $user['User']['USERNAME']; ?>
			</td>
			<!--td>
				<?php echo $user['User']['PASSWORD']; ?>
			</td-->
			<td>
				<p align="left"><?php echo $user['Canbo']['HOTEN']; ?></a>
			</td>
			<td>
				<?php echo $user['User']['ROLE']; ?>
			</td>
			<td class="actions">
				<?php echo $html->link('Xem', array('action' => 'view', $user['User']['id'])); ?>
				<?php echo $html->link('Sửa', array('action' => 'edit', $user['User']['id'])); ?>
				<?php echo $html->link('Xóa', array('action' => 'delete', $user['User']['id']), null, sprintf(__('Bạn muốn xóa tài khoản # %s?', true), $user['User']['USERNAME'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
	</div>
	<div class="paging">
		<?php echo $paginator->prev('<< '.'Trước', array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $paginator->numbers();?>
		<?php echo $paginator->next('sau'.' >>', array(), null, array('class' => 'disabled'));?>
	</div>

